/**
 * Created with IntelliJ IDEA.
 * Description:死锁
 * User:DELL
 * Date:2025-01-19
 * Time:22:29
 */

public class Demo2 {
    private static Object locker=new Object();
    public static void func1(){
        synchronized (locker){
            func2();
        }
    }
    public static void func2(){
        func3();
    }
    public static void func3(){
        func4();
    }
    public static void func4(){
        synchronized (locker){

        }
    }

    public static void main(String[] args) {

    }
}
